﻿<UserControl
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
    mc:Ignorable="d" xmlns:dataInput="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Data.Input" xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls" x:Class="FederatedSearchSL.MainPage" Height="282.325" Width="384.377">
    <Border x:Name="LayoutRoot" BorderBrush="#FF434343">
        <Border.Background>
            <LinearGradientBrush EndPoint="1,0.5" StartPoint="0,0.5">
                <GradientStop Color="#FFCDCDCD"/>
                <GradientStop Color="White" Offset="1"/>
            </LinearGradientBrush>
        </Border.Background>
        <controls:TabControl TabStripPlacement="Top" >
            <controls:TabItem Header="Simple" VerticalAlignment="Stretch" HorizontalAlignment="Stretch">
                <Grid >
                    <Grid.RowDefinitions>
                        <RowDefinition Height="Auto"/>
                        <RowDefinition Height="Auto"/>
                        <RowDefinition Height="0.176*"/>
                        <RowDefinition Height="0.824*"/>
                    </Grid.RowDefinitions>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="Auto"/>
                        <ColumnDefinition Width="0.778*"/>
                    </Grid.ColumnDefinitions>
                    <dataInput:Label HorizontalAlignment="Left" Margin="0,0,0,8" d:LayoutOverrides="Height" Grid.ColumnSpan="2" Content="Create a provider using Bing to provide results" FontStyle="Italic"/>
                    <dataInput:Label Margin="0,0,10,0"  Content="Provider Name" Grid.Row="1"  />
                    <TextBox x:Name="tbName" TextWrapping="Wrap" Grid.Column="1" Grid.Row="1" />
                    <dataInput:Label Margin="0,0,10,0" Content="Site URL (Ex. msdn.com)" Grid.Row="2"  />
                    <TextBox x:Name="tbSimpleUrl" TextWrapping="Wrap" Grid.Row="2" Grid.Column="1" />
                    <Button x:Name="btnGenerateSimple" Content="Generate OSDX Provider" HorizontalAlignment="Center" Grid.Row="3" Grid.ColumnSpan="2" d:LayoutOverrides="Height, GridBox" Click="btnGenerateSimple_Click" VerticalAlignment="Top" Margin="0,10,0,0" />
                </Grid>
            </controls:TabItem>
            <controls:TabItem Header="Advanced">
                <Grid>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="0.15*"/>
                        <RowDefinition Height="0.15*"/>
                        <RowDefinition Height="0.15*"/>
                        <RowDefinition Height="0.15*"/>
                        <RowDefinition Height="0.15*"/>
                        <RowDefinition Height="0.15*"/>
                        <RowDefinition Height=".15*"/>
                    </Grid.RowDefinitions>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="Auto"/>
                        <ColumnDefinition Width="0.716*"/>
                    </Grid.ColumnDefinitions>
                    <dataInput:Label HorizontalAlignment="Left" Margin="0,0,0,10" d:LayoutOverrides="Height" Grid.ColumnSpan="2" FontStyle="Italic" Content="Create a completely custom provider"/>
                	<dataInput:Label Content="Title" Margin="0,0,10,0" VerticalAlignment="Center" Grid.Row="1"/>
                	<TextBox x:Name="tbTitle" TextWrapping="Wrap" Grid.Column="1" VerticalAlignment="Center" Grid.Row="1"/>
                	<dataInput:Label Content="Description" Margin="0,0,10,0" Grid.Row="2" VerticalAlignment="Center"/>
                	<TextBox x:Name="tbDescription" TextWrapping="Wrap" Grid.Column="1" Grid.Row="2" VerticalAlignment="Center" />
                	<dataInput:Label Content="Feed (ATOM)" Margin="0,0,10,0" Grid.Row="3" ToolTipService.ToolTip="The URL for search results in ATOM format"/>
                	<TextBox x:Name="tbAtom" TextWrapping="Wrap" Grid.Column="1" Grid.Row="3" VerticalAlignment="Center"  />
                	<dataInput:Label Content="Feed (RSS)" Margin="0,0,10,0" Grid.Row="4" ToolTipService.ToolTip="The URL for search results in RSS format" VerticalAlignment="Center"/>
                	<TextBox x:Name="tbRss" TextWrapping="Wrap" Grid.Column="1" Grid.Row="4"  VerticalAlignment="Center" />
                	<Button x:Name="btnGenerateFull" Content="Generate" Grid.Column="0" Grid.Row="6" Grid.ColumnSpan="2" HorizontalAlignment="Center" VerticalAlignment="Center" Click="btnGenerateFull_Click" />
                	<TextBlock Margin="0,0,29,0" VerticalAlignment="Center" Text="Use {searchTerms} in ATOM/RSS URL for keyword(s)" TextWrapping="Wrap" d:LayoutOverrides="Width" Grid.Row="5" Grid.ColumnSpan="2" FontStyle="Italic" HorizontalAlignment="Center"/>
                </Grid>
            </controls:TabItem>
        </controls:TabControl>
    </Border>
</UserControl>
